const package = require('./package.json')
module.exports = {
    name: package.name,
    namespace: package.name,
    script: 'bin/www',
    cmd: './',
    restart_delay: 2000,
    max_memory_restart: '2048M',
    instances: process.env.CLUSTER_NUM || 1,
    exec_mode: 'cluster',
    out_file: `./log_box/pm2-logs/${process.env.MODE}/out.log`,
    error_file: `./log_box/pm2-logs/${process.env.MODE}/err.log`,
    merge_logs: false,
    log_date_format: 'YYYY-MM-DD HH:mm:ss'
}
